home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
HAM Radio 1997
/
HAM Radio 1997.iso
/
vcls
/
fulldrag
/
clockfrm.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
1996-04-08
|
845b
|
47 lines
unit Clockfrm;
interface
uses
SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
Forms, Dialogs, Fulldrag, ExtCtrls, StdCtrls;
type
THorloge = class(TForm)
FullDrag1: TFullDrag;
Timer1: TTimer;
procedure FormPaint(Sender: TObject);
procedure Timer1Timer(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Horloge: THorloge;
implementation
{$R *.DFM}
procedure THorloge.FormPaint(Sender: TObject);
var
t: String;
begin
t:=TimeToStr(Time);
SetBkMode(canvas.Handle, TRANSPARENT);
with Canvas do
TextOut(
(ClientWidth-TextWidth(t)) div 2,
(ClientHeight-TextHeight(t)) div 2,
t);
end;
procedure THorloge.Timer1Timer(Sender: TObject);
begin
Invalidate;
end;
end.